package com.ktjy.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
public class Information implements Serializable {
    private Long id; //资讯id
    private String title; //资讯标题
    private String content; //资讯内容
    private Long replyCount; //回复次数
    private Long viewCount; //查看次数
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date reportTime; //发表时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date lastMdfTime; //最后修改时间
    private String repliesContent; //回复内容
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date replyTime; //回复时间
    private Long infoId; //资讯id

    public Information() {
    }

    public Information(Long id, String title, String content, Long replyCount, Long viewCount, Date reportTime, Date lastMdfTime, String repliesContent, Date replyTime,Long infoId) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.replyCount = replyCount;
        this.viewCount = viewCount;
        this.reportTime = reportTime;
        this.lastMdfTime = lastMdfTime;
        this.repliesContent = repliesContent;
        this.replyTime = replyTime;
        this.infoId = infoId;
    }
}
